﻿using System.Configuration;

namespace FileDistributor.Configuration
{
    public class MonitorElement : ConfigurationElement
    {
        public MonitorElement()
        {
            ElementName = "monitor";
        }

        public string ElementName { get; private set; }

        [ConfigurationProperty("pollInterval", IsRequired = true)]
        public int PollInterval
        {
            get
            {
                return (int)this["pollInterval"];
            }
        }

    }

}
